package com.zryc.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@ApiModel("用户实体")
@TableName("t_user")//映射数据库表
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Integer uid;                //主键

    @ApiModelProperty(value = "用户名")
    private String username;            //用户名

    @ApiModelProperty(value = "密码")
    private String password;            //密码

    @ApiModelProperty(value = "手机号")
    private String telephone;           //手机号

    @ApiModelProperty(value = "昵称")
    private String nickName;            //昵称

    @ApiModelProperty(value = "电子邮箱")
    private String email;               //电子邮箱

    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;       //创建时间

    @ApiModelProperty(value = "最近登录时间")
    private Timestamp loginTime;        //最近登录时间

    @ApiModelProperty(value = "状态：0-冻结 1-可用")
    private Integer status;             //状态：0-冻结 1-可用

    @ApiModelProperty(value = "备注")
    private String note;                //备注
}
